Auto merge of #1443 - alexcrichton:hyphens-to-underscores, r=alexcrichton
authorbors <bors@rust-lang.org>
Wed, 25 Mar 2015 02:30:58 +0000 (02:30 +0000)
committerbors <bors@rust-lang.org>
Wed, 25 Mar 2015 02:30:58 +0000 (02:30 +0000)
commit0e42b4dbf464429b67bf2ac80c293a0a9cee604d
tree7628dfa9e4505ff5f112e07503f4d9dca781b1bb
parent8f5cb1d5f2e6c3fab99f3ac7da6fe3f41262b7cc
parentafe88e0bd1b665c4344a1af2c58edc94314fdb8a
Auto merge of #1443 - alexcrichton:hyphens-to-underscores, r=alexcrichton

This change allows *packages* to have hyphens in them, but they are always
translated to underscores when translated to a crate name. This means that all
crates are compiled with a `--crate-name` that has no hyphens (as well as
`--extern` directives having no hyphens).

Binaries and examples, however, are allowed to contain
hyphens in their name. The "crate name" will still have an underscore, but the
output will be in the same dasherized name.

Explicitly named targets are not allowed to have hyphens in them as well.